package com.wtwd.campus.service;

import com.wtwd.campus.common.RespEntity;
import com.wtwd.campus.entity.DeviceClassMode;
import com.wtwd.campus.entity.DeviceClassPattern;
import com.wtwd.campus.entity.SysUser;

import java.util.List;

/**
 * @author ljiong
 * @date 2021/06/25
 * @description
 */
public interface DeviceClassPatternService {
    List<DeviceClassPattern> getDeviceClassesPatternByDeviceId(Integer deviceId);

    RespEntity deleteClassesPattern(Integer id, SysUser sysUser);

    Integer updateClassPatternStart(DeviceClassPattern deviceClassPattern);

    Integer deleteDeviceClassesPatternById(Integer id);

    Integer deleteDeviceClassesPatternByCommandNumber(String commandNumber);


    /**
     * 添加设备课堂模式
     *
     * @param deviceClassMode
     * @return
     */
    int addDeviceClassPattern(DeviceClassMode deviceClassMode);

    /**
     * 修改课堂模式
     * @param status
     * @param commandNumber
     * @return
     */
    int updateClassPatternStatus(Integer devideId,Integer sequence, Integer status, String commandNumber);

    /**
     * 修改课堂模式2
     * @param commandNumber
     * @return
     */
    int updateClassPatternStatus2(Integer id ,Integer status, String commandNumber);

    /**
     * 根据id查找课堂模式的记录
     * @param id
     * @return
     */
    DeviceClassPattern getClassModeById(Integer id);

    /**
     * 添加课堂模式
     * @param imei
     * @param deviceId
     * @param deviceClassPatterns
     * @param sysUser
     * @return
     */
    RespEntity addClassesPattern(String imei, Integer deviceId, List<DeviceClassMode> deviceClassPatterns, SysUser sysUser);
}
